package com.haiyu.manager.service;

import com.haiyu.manager.dto.Category2DTO;
import com.haiyu.manager.dto.Category2SearchDTO;
import com.haiyu.manager.pojo.Category2;
import com.haiyu.manager.response.PageDataResult;

import java.util.List;
import java.util.Map;

public interface Category2Service {

    PageDataResult getCategory2List(Category2SearchDTO Category2Search, Integer pageNum, Integer pageSize);

    Map<String,Object> addCategory2(Category2 category2);

    Map<String,Object> updateCategory2(Category2 category2);

    Category2 getCategory2ById(Integer category2Id);

    Category2 findByCategory2Name(String category2Name);

    //int updatePwd(String userName,String password);

    Map<String, Object> delCategory2(Integer category2Id,Integer category2Label);

    Map<String, Object> recoverCategory2(Integer category2Id,Integer category2Label);

}
